/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-12-25     sundm75       the first version
 */
#ifndef __PKG_LITTLEBEEP_H__
#define __PKG_LITTLEBEEP_H__

#ifndef PKG_USING_BEEP_COUNT
#define DEFAULT_COUNT              (3)
#else
#define DEFAULT_COUNT              PKG_USING_BEEP_COUNT
#endif

#ifndef PKG_USING_BEEP_PERIOD
#define DEFAULT_PERIOD          (1000)
#else
#define DEFAULT_PERIOD          PKG_USING_BEEP_PERIOD
#endif

#ifndef PKG_USING_BEEP_PERCENT
#define DEFAULT_PERCENT         (50)
#else
#define DEFAULT_PERCENT         PKG_USING_BEEP_PERCENT
#endif

#ifndef PKG_USING_EBEEP_PIN
#define DEFAULT_PIN             (16)
#else
#define DEFAULT_PIN             PKG_USING_EBEEP_PIN
#endif

#ifndef PKG_USING_BEEP_ACTIVELOGIC
#define DEFAULT_ACTIVELOGIC              (1)
#else
#define DEFAULT_ACTIVELOGIC       PKG_USING_BEEP_ACTIVELOGIC
#endif

void beep_mode(rt_uint32_t count, rt_uint32_t period, rt_uint32_t percent);

#endif /* APPLICATIONS_LITTERBEEP_H_ */
